package com.project.communitymanagement.common;

import com.alibaba.fastjson.JSON;
import org.apache.commons.lang3.StringUtils;

/**
 * @ProjectName: hotelNew
 * @Package: com.setup.mysql.common
 * @ClassName: StringUtil
 * @Author: "XGP"
 * @Description:
 * @Date: 2021/09/13 11:25
 * @Version: 1.0
 */
public class StringUtil {
    public static boolean isNoneEmpty(String str){
        return StringUtils.isNoneBlank(str);
    }
    public static String Object2Json(Object o){
        if(!(o instanceof String))
        {
            return JSON.toJSONString(o);
        }
        return o==null?null:o.toString();
    }
}
